<?php

  // Database connection settings
  define("PG_DB"  , "balkan_20080908_0_0_1_postgis");
  define("PG_HOST", "192.168.1.10");
  define("PG_USER", "postgres");
  define("PG_PORT", "5432");
  define("PG_PWD", "postgres123");
  define("TABLE",   "victoria");

  $counter = $pathlength = 0;

  // Retrieve start point
  $geojsonFeat = $_REQUEST["geojsonstr"];
  $geojsonFeat = str_replace("--", " ", $geojsonFeat);


  echo $geojsonFeat;


  function saveGeojson($geojsonFeat)
  {
  	$con = pg_connect("dbname=".PG_DB." host=".PG_HOST." user=".PG_USER." password=".PG_PWD);
  }

?>